//
//  WKWebControlM.h
//  jhf
//
//  Created by Mac on 2020/7/31.
//

#import <UIKit/UIKit.h>

#import "ViewControlM.h"

#import <WebKit/WebKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface WKWebControlM : ViewControlM

@property (nonatomic, copy) NSString *url;
@property (nonatomic, copy) NSString *baseUrl;

@property (nonatomic, copy) NSString *htmlContent;

@property (nonatomic, assign) CGFloat cellHeight;

@property (nonatomic, assign) BOOL userInteractionEnabled;

// 不带 header 和 body 的 html 片段
+ (WKWebControlM *)defaultControlWebContent:(NSString *)content;

// html 片段
+ (WKWebControlM *)defaultControlWebContent:(NSString *)content baseUrl:(NSString *)baseUrl;

// html url
+ (WKWebControlM *)defaultControlUrl:(NSString *)url;

- (void)controlWebV:(WKWebView *)webV;

@end

NS_ASSUME_NONNULL_END
